package com.travel.JPA;

import com.travel.Bean.Comment;
import com.travel.Bean.Comment_1;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface Comment_1JPA extends JpaRepository<Comment_1,String> {

    //获取攻略二级评论
    @Query("select c from Comment_1 c where c.id like concat(?1,'_%') ")
    List<Comment_1> getComment_1ByIdLike(String CommentId);

}
